namespace hjc {

	export abstract class Dialog extends View {

		public btnClose: hjc.Button;
		public backRect: eui.Rect;

		constructor() {
			super();
			this.$configs.showMode = ShowMode.STRONG_IN;
			this.$configs.hideMode = HideMode.STRONG_OUT;
			this.$configs.centered = true;
			this.$configs.backColor = Color.BLACK;
			this.$configs.backAlpha = Default.BACK_ALPHA;
			this.$configs.backClose = true;
			if (!!this.name) this.name = '对话框';
			this.$configs.exclusive = false;
			this.$configs.alert = false;
			this.$configs.multi = false;
		}

		protected hide(): void {
			game.hide(this);
		}
	}
}